class_name DelaySkillsC
extends Node
const component_name := "DelaySkillsC"

var _notify: Notify  #set from mutil
var _id: int  #entity id
var use_skill: UseSkill setget _set_use_skill
var heap: Heap = Heap.new()


func _set_use_skill(skill):
	heap.insert(skill)
	use_skill = skill
	if _notify:
		_notify.modify_event(_id, "use_skill")


class UseSkill:
	var skill
	var targets: Array = []
	var next_time: int

	func _init(_skill, _targets, _next_time):
		skill = _skill
		targets = _targets
		next_time = _next_time
